Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust: Implement data flow through tuple structs #18675

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Feb 4, 2025

This PR adds support for flow through structs that use tuple fields (struct Foo(i64)), as opposed to structs with named fields (struct Foo{i: i64}), which are already supported.

Instead of adding a fourth constructor to TContent, I decided to instead unify the representation into just two constructors TTupleFieldContent(TupleField field) and TRecordFieldContent(RecordField field), which both support structs as well as variants.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Feb 4, 2025
@hvitved hvitved force-pushed the rust/struct-tuple-field branch 2 times, most recently from 69251cd to e2a78ae Compare February 5, 2025 10:34
@hvitved hvitved force-pushed the rust/struct-tuple-field branch from e2a78ae to 95ab48d Compare February 5, 2025 12:27
@hvitved hvitved marked this pull request as ready for review February 5, 2025 15:34
@Copilot Copilot bot review requested due to automatic review settings February 5, 2025 15:34
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@hvitved hvitved requested a review from paldepind February 6, 2025 11:52
Copy link
Contributor

@paldepind paldepind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🎉

@hvitved hvitved merged commit aca70cd into github:main Feb 6, 2025
16 checks passed
@hvitved hvitved deleted the rust/struct-tuple-field branch February 6, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants